<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>查看信息</h3>
</div>
<!-- table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
  <tr>
    <th width="16%" align="right">分配表表号：</th>
    <td width="34%"><s:property value='model.serious_num'/></td>
    <th width="16%" align="right">读数：</th>
    <td width="34%"><s:property value='model.read_num'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">分配表读数对应时间：</th>
    <td width="34%"><s:date name='model.read_time' format="yyyy-MM-dd HH:mm:ss"/></td>
    <th width="16%" align="right">背板温度：</th>
    <td width="34%"><s:property value='model.back_temp'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">前板温度：</th>
    <td width="34%"><s:property value='model.from_temp'/></td>
    <th width="16%" align="right">抄表时间：</th>
    <td width="34%"><s:date name='model.record_time' format="yyyy-MM-dd HH:mm:ss"/></td>
  </tr>
  <tr>
    <th width="16%" align="right">去年：</th>
    <td width="34%"><s:property value='model.last_year_num'/></td>
    <th width="16%" align="right">1月：</th>
    <td width="34%"><s:property value='model.january'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">2月：</th>
    <td width="34%"><s:property value='model.february'/></td>
    <th width="16%" align="right">3月：</th>
    <td width="34%"><s:property value='model.march'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">4月：</th>
    <td width="34%"><s:property value='model.april'/></td>
    <th width="16%" align="right">5月：</th>
    <td width="34%"><s:property value='model.may'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">10月：</th>
    <td width="34%"><s:property value='model.october'/></td>
    <th width="16%" align="right">11月：</th>
    <td width="34%"><s:property value='model.november'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">12月：</th>
    <td width="34%" colspan="3"><s:property value='model.december'/></td>
  </tr>
  <tr>
    <th>&nbsp;</th>
    <td colspan="3"><input type="button" class="websub" onclick="history.back();" value="返 回" /></td>
  </tr>
</table-->
 <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="5%">序号</th>
      <th width="10%">分配表表号</th>
      <th width="10%">读数</th>
      <th width="16%">读数对应时间</th>
      <th width="5%">背板温度</th>
      <th width="5%">前板温度</th>
      <th width="4%">1</th>
      <th width="4%">2</th>
      <th width="4%">3</th>
      <th width="4%">4</th>
      <th width="4%">5</th>
      <th width="4%">10</th>
      <th width="4%">11</th>
      <th width="4%">12</th>
      <th width="4%">去年</th>
      <th width="4%">抄表时间</th>
      <th width="4%">操作</th>
    </tr>
    <s:date var="max_date" name="selectBean.max_read_time" format="yyyy-MM-dd"/>
    <s:iterator value="dataList" var="cur" status="vs">
    	<s:date var="current_readtime" name="#cur.READ_TIME" format="yyyy-MM-dd"/>
      <tr align="center">
        <td><abean:counter write="true" /></td>
        <td><s:property value="#cur.SERIOUS_NUM"/></td>
        <td>
        	<s:property value="#cur.READ_NUM"/>
        </td>
        <td>
        	<s:if test="#current_readtime!=#max_date">
        		<font color="red"><s:date name="#cur.READ_TIME" format="yyyy-MM-dd hh:mm:ss" /></font>
        	</s:if>
        	<s:else>
        		<s:date name="#cur.READ_TIME" format="yyyy-MM-dd hh:mm:ss"/>
        	</s:else>
        </td>
        <s:if test="#cur.BACK_TEMP<#cur.FROM_TEMP">
        <td>
        	<s:property value="#cur.BACK_TEMP"/>
        </td>
        <td>
        	<s:property value="#cur.FROM_TEMP"/>
        </td>
        </s:if>
        <s:else>
        <td>
        	<s:if test="#cur.BACK_TEMP<60">
        		<s:property value="#cur.BACK_TEMP"/>
        	</s:if>
        	<s:if test="#cur.BACK_TEMP>60&&#cur.BACK_TEMP<85">
        		<font color="yellow"><s:property value="#cur.BACK_TEMP"/></font>
        	</s:if>
        	<s:if test="#cur.BACK_TEMP>85">
        		<s:property value="#cur.BACK_TEMP"/>
        	</s:if>
        </td>
        <td>
        	<s:if test="#cur.FROM_TEMP<50">
        		<s:property value="#cur.FROM_TEMP"/>
        	</s:if>
        	<s:if test="#cur.FROM_TEMP>50&&#cur.FROM_TEMP<65">
        		<font color="yellow"><s:property value="#cur.FROM_TEMP"/></font>
        	</s:if>
        	<s:if test="#cur.FROM_TEMP>65">
        		<s:property value="#cur.FROM_TEMP"/>
        	</s:if>
        </td>
        </s:else>
        <td><s:property value="#cur.JANUARY"/></td>
        <td><s:property value="#cur.FEBRUARY"/></td>
        <td><s:property value="#cur.MARCH"/></td>
        <td><s:property value="#cur.APRIL"/></td>
        <td><s:property value="#cur.MAY"/></td>
        <td><s:property value="#cur.OCTOBER"/></td>
        <td><s:property value="#cur.NOVEMBER"/></td>
        <td><s:property value="#cur.DECEMBER"/></td>
        <td><s:property value="#cur.LAST_YEAR_NUM"/></td>
        <td nowrap="nowrap">
        	<s:date name="#cur.RECORD_TIME" format="yyyy-MM-dd hh:mm:ss"/>
       </td>
       <td nowrap="nowrap">
        	<a href="AssignMeterData!edit.action?id=<s:property value='#cur.ID'/>">修改</a>
       </td>
      </tr>
    </s:iterator>
  </table>
   <!-- table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
   	<tr><th align="left">注：抄表文件温度异常提示，前板温度T1，50&gt;T2&gt;65<font color="yellow">橙色</font>，T1>65<font color="red">红色</font>；背板温度T2，60&gt;T2&gt;85<font color="yellow">橙色</font>，T2>85<font color="red">红色</font>；T1>T2全部为<font color="red">红色</font>。</th></tr>
   </table -->
</body>
</html>
